/*
JavaScript Document
Evolved By Soca
2010.3.15
添加下面代码到首页HTML尾部：
<script type=text/javascript>setTimeChange();</script>
*/
var k=1;        //开始幻灯值
var itemnum=3;  //图片DIV数
var NewsItem;
function setTimeChange(){
	changePics(k);
	k++;
	if(k>itemnum) k=1;
	setTimeout("setTimeChange()",3000);
}
function initiate(){
	for(i=1;i<=itemnum;i++){
		NewsItem=document.getElementById("picNews"+i);
		NewsItem.setAttribute("style","display:none");
		NewsItem.style.display="none";
		PicItem=document.getElementById("slide_Pic_"+i);
		PicItem.className = "";
	}
}
function changePics(a){
	initiate();
	NewsItem=document.getElementById("picNews"+a);
	NewsItem.setAttribute("style","display:block;");
	NewsItem.style.display="block";	
	PicItem=document.getElementById("slide_Pic_"+a);
	PicItem.className = "cur";
}